package com.niuwa.p2p.vo.front.account;

import com.niuwa.p2p.core.utils.EmptyUtil;

/**
 * 前台消息Vo
 * @title FrontMsgVo.java
 *
 * @author liuhuan
 * @version 1.0
 * @created 2015年4月21日
 */
public class FrontMsgVo {
	
	private String no;
	/**
	 * 名称
	 */
	private String frontName;
	
	/**
	 * 站内信
	 */
	private String checkedInMsg;
	
	/**
	 * 邮件 
	 */
	private String checkedEmail;
	
	/**
	 * 短信
	 */
	private String checkedMsg;
	
	private String sendMethod;
	
	public String getSendMethod() {
		return sendMethod;
	}
	
	public void setSendMethod(String sendMethod) {
		if(EmptyUtil.isNotEmpty(sendMethod)){
			this.checkedMsg = sendMethod.indexOf("MSG")==-1?"N":"Y";
			this.checkedEmail = sendMethod.indexOf("EMAIL")==-1?"N":"Y";
			this.checkedInMsg = sendMethod.indexOf("IN_MSG")==-1?"N":"Y";
		}
		this.sendMethod = sendMethod;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getFrontName() {
		return frontName;
	}

	public void setFrontName(String frontName) {
		this.frontName = frontName;
	}

	public String getCheckedInMsg() {
		return checkedInMsg;
	}

	public void setCheckedInMsg(String checkedInMsg) {
		this.checkedInMsg = checkedInMsg;
	}

	public String getCheckedEmail() {
		return checkedEmail;
	}

	public void setCheckedEmail(String checkedEmail) {
		this.checkedEmail = checkedEmail;
	}

	public String getCheckedMsg() {
		return checkedMsg;
	}

	public void setCheckedMsg(String checkedMsg) {
		this.checkedMsg = checkedMsg;
	}
}
